import { createApp } from 'vue'

import App from './App.vue'
import router from './router'
// 1. 引入你需要的组件
import { Button } from 'vant'
import { Toast } from 'vant'
import pinia from './stores/index'
//   指定图标文件夹，绝对路径
import 'virtual:svg-icons-register'
// 2. 引入组件样式
import 'vant/lib/index.css'
import './styles/main.scss'

// 引入统一管理后的pinia
const app = createApp(App)

app.use(Button)
app.use(Toast)

app.use(pinia)
app.use(router)
app.mount('#app')
